﻿@model ZJK.Models.ExpertManage.ExpertDelete
@{
    ViewBag.Title = "专家停用状态设置";
    Layout = "~/Views/Shared/ExpertManage/_Layout_ExpertManage.cshtml";
}
<h2>
    @ViewBag.Title
</h2>
<div>
    @using (Html.BeginForm("Edit", "ExpertManage", FormMethod.Post, new { id = "form_operation" }))
    {
        @Html.HiddenFor(m => m.expert.id)
        @Html.HiddenFor(m => m.expert.is_valid)
        @Html.HiddenFor(m => m.expert.create_date)
        <table class="datagrid">
            <tr>
                <td>
                    姓名：
                </td>
                <td>@Html.TextBoxFor(m => m.expert.zj_name)<span style="color: Red;">*</span>
                </td>
                <td>
                    性别：
                </td>
                <td>@Html.DropDownListFor(m => m.expert.zj_sex, new SelectList(new string[] { "男", "女" }))
                </td>
                <td>
                    出生年月：
                </td>
                <td>
                    <table class="pbgrid">
                        <tr>
                            <td>@Html.DropDownListFor(m => m.expert.zj_birthdate_y, new SelectList(new string[] { 
           "1900", "1901", "1902", "1903", "1904", "1905", "1906", "1907", "1908", "1909", 
           "1910", "1911", "1912", "1913", "1914", "1915", "1916", "1917", "1918", "1919", 
           "1920", "1921", "1922", "1923", "1924", "1925", "1926", "1927", "1928", "1929", 
           "1930", "1931", "1932", "1933", "1934", "1935", "1936", "1937", "1938", "1939", 
           "1940", "1941", "1942", "1943", "1944", "1945", "1946", "1947", "1948", "1949", 
           "1950", "1951", "1952", "1953", "1954", "1955", "1956", "1957", "1958", "1959", 
           "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", 
           "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", 
           "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", 
           "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", 
           "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", 
           "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", }))
                            </td>
                            <td>
                                年
                            </td>
                            <td>@Html.DropDownListFor(m => m.expert.zj_birthdate_m, new SelectList(new string[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12" }))
                            </td>
                            <td>
                                月
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    毕业院校：
                </td>
                <td>@Html.TextBoxFor(m => m.expert.zj_graduation)
                </td>
                <td>
                    学历：
                </td>
                <td>
                    @Html.DropDownListFor(m => m.expert.zj_education, new SelectList(new string[] { "大学本科", "研究生", "博士", "博士后", "专科", "其他" }))
                </td>
                <td>
                    学位：
                </td>
                <td>
                    @Html.DropDownListFor(m => m.expert.zj_degree, new SelectList(new string[] { "无", "学士", "硕士", "博士" }))
                </td>
            </tr>
            <tr>
                <td>
                    专业：
                </td>
                <td colspan="5">
                    <table class="pbgrid" style="width: 100%">
                        <tr>
                            <td>@Html.TextBoxFor(m => m.expert.zj_professional, new { style = "width:98%;" })
                            </td>
                            <td>
                                <span style="color: Red;">*</span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    工作单位：
                </td>
                <td colspan="5">
                    <table class="pbgrid" style="width: 100%">
                        <tr>
                            <td>
                                @Html.TextBoxFor(m => m.expert.zj_company, new { style = "width:98%;" })
                            </td>
                            <td>
                                <span style="color: Red;">*</span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    职务：
                </td>
                <td colspan="3">
                    <table class="pbgrid" style="width: 100%">
                        <tr>
                            <td>@Html.TextBoxFor(m => m.expert.zj_position, new { style = "width:98%;" })
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    职称：
                </td>
                <td>@Html.TextBoxFor(m => m.expert.zj_title)
                </td>
            </tr>
            <tr>
                <td>
                    工作简历：
                </td>
                <td colspan="5">@Html.TextAreaFor(m => m.expert.zj_resume, new { rows = "5" })
                </td>
            </tr>
            <tr>
                <td>
                    联系电话：
                </td>
                <td>
                    <table class="pbgrid" style="width: 100%">
                        <tr>
                            <td>@Html.TextBoxFor(m => m.expert.zj_tele_work)
                            </td>
                            <td>
                                <span style="color: Red;">*</span>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    家庭电话：
                </td>
                <td>@Html.TextBoxFor(m => m.expert.zj_tele_home)
                </td>
                <td>
                    传真：
                </td>
                <td>@Html.TextBoxFor(m => m.expert.zj_fax)
                </td>
            </tr>
            <tr>
                <td>
                    手机：
                </td>
                <td>@Html.TextBoxFor(m => m.expert.zj_mobile)
                </td>
                <td>
                    电子邮件：
                </td>
                <td colspan="3">@Html.TextBoxFor(m => m.expert.zj_email, new { style = "width:98%;" })
                </td>
            </tr>
            <tr>
                <td>
                    通信地址：
                </td>
                <td colspan="5">@Html.TextBoxFor(m => m.expert.zj_mail_address, new { style = "width:98%;" })
                </td>
            </tr>
            <tr>
                <td>
                    身份证号：
                </td>
                <td colspan="5">@Html.TextBoxFor(m => m.expert.zj_idcard_number, new { style = "width:98%;" })
                </td>
            </tr>
            <tr>
                <td>
                    所属地区：
                </td>
                <td colspan="5">
                    <!--选择城市功能      star      -->
                    <script type="text/javascript" src="@Url.Content("~/Content/Area_mini.js")"></script>
                    <script type='text/javascript'>
                        $(document).ready(function () {

                            $("#areaProvince").change(function () {
                                LoadCity();
                                //LoadCounty();
                            });

                            /*
                            $("#areaCity").change(function () {
                            LoadCounty();
                            });
                            */

                            LoadArea('广西', '南宁');
                        });

                        function LoadArea(prov, city) {
                            LoadProvince(prov);
                            LoadCity(city);

                        }
                        function LoadProvince(values) {
                            $("#areaProvince").empty();
                            for (var id in countryAreaData) {

                                $("#areaProvince").append(" <option value='" + id + "'>" + id + "</option>");

                            }
                            if (typeof (values) == "string") {
                                $("#areaProvince option[value=" + values + "]").attr("selected", true)
                            }
                        }
                        function LoadCity(values) {
                            $("#areaCity").empty();
                            var s1 = $("#areaProvince option:selected").val();
                            for (var id2 in countryAreaData[s1]) {

                                $("#areaCity").append(" <option value='" + id2 + "'>" + id2 + "</option>");
                            }
                            if (typeof (values) == "string") {
                                $("#areaCity option[value=" + values + "]").attr("selected", true)

                            }
                        }
                    </script>
                    @Html.DropDownListFor(m => m.expert.zj_area, new SelectList(new string[] { "省份" }), new { id = "areaProvince" })
                    @Html.DropDownListFor(m => m.expert.zj_city, new SelectList(new string[] { "地市" }), new { id = "areaCity" })
                    <!--选择城市功能      end      -->
                </td>
            </tr>
            <tr>
                <td>
                    所属分类：
                </td>
                <td colspan="5">
                    <div style="max-width: 480px; white-space: normal;">
                        
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    具体精通<br />
                    内容和产品
                </td>
                <td colspan="5">@Html.TextAreaFor(m => m.expert.zj_content_and_product, new { rows = "5" })
                </td>
            </tr>
            <tr>
                <td>
                    专家级别：
                </td>
                <td>@Html.DropDownListFor(m => m.expert.zj_level, new SelectList(new string[] { "地方级", "国家级" }))
                </td>
                <td>
                    推荐单位：
                </td>
                <td colspan="3">@Html.TextBoxFor(m => m.expert.zj_recommend_department, new { style = "width:98%;" })
                </td>
            </tr>
            <tr>
                <td>
                    推荐意见：
                </td>
                <td colspan="5">@Html.TextAreaFor(m => m.expert.zj_recommend_describe, new { rows = "5" })
                </td>
            </tr>
        </table>
        
        <p>
            <div class="toolbar">
                <a href="javascript:$('#form_operation').submit()">保存</a></div>
        </p>
    }
</div>
